package com.adapters;

import android.view.View;
import android.widget.ImageView;
import android.widget.RatingBar;
import android.widget.TextView;

import com.Gourmet.Activities.R;

public class ViewHolder {
	  private View mRow;
	  private TextView title = null;
	  private TextView detail = null;
	  private ImageView i11=null; 
	  private RatingBar rating=null;
	  public ViewHolder(View row) {
	  mRow = row;
	}
	public TextView gettitle() {
	   if(null == title){
	       title = (TextView) mRow.findViewById(R.id.title);
	      }
	  return title;
	}     
	public TextView getdetail() {
	   if(null == detail){
	        detail = (TextView) mRow.findViewById(R.id.detail);
	          }
	 return detail;
	}
	public ImageView getImage() {
	   if(null == i11){
	        i11 = (ImageView) mRow.findViewById(R.id.img);
	                            }
	      return i11;
	}

	public RatingBar getRatingBar(){
		if(null==rating){
		rating=(RatingBar)mRow.findViewById(R.id.ratingbar);
		}
		return rating;
		}
		
}
